var balance = {};
balance.methods = {};

$(function(){
    // 充值金额表单校验
    balance.methods.identityFormCheck();

    // 充值金额表单提交
    balance.methods.identityFormSubmit();
})

// 充值金额表单校验
balance.methods.identityFormCheck = function(){
    //验证规则
    $(".shop-identity-form").validate({

        rules:{
            moneyNumber:{
                required:true,
                number:true
            }
        },
        messages:{
            moneyNumber:{
                required:"请输入充值金额",
                number:"必须输入合法的数字"
            }
        }
    });

}


// 充值金额表单提交
balance.methods.identityFormSubmit = function(){
    $(".shop-identity-form").on("click",".shop-identity-btn",function(){
        if($(".shop-identity-form").valid()){
            console.log("下一模块（在线支付）");
        }
    })
}